import hashlib

class Md5Hash():
    def md5_hash(self,param):
        hash = hashlib.md5()
        hash.update(param.encode(encoding="utf-8"))
        md5 = hash.hexdigest()
        return md5

if __name__ == "__main__":
    param = "7777tttt8888"
    md5 = Md5Hash().md5_hash(param)
    print("md5加密前：",param)
    print("md5加密后：",md5)

